@import 'base';
@import 'variable';
@import 'common';

body {
    background-color: #eee;
}
.detail-header {
    background-color: #fff;
    .title {
        color: #333;
    }
    .back {
        background: url('../images/back.png') no-repeat center center;
        background-size: 20px 20px;
    }

    .menu {
        background: url('../images/more.png') no-repeat center center;
        background-size: 20px;
    }
}

.detail-banner {
    img {
        width: 100%;
    }
}

.detail-info {
    display: flex;
    padding:10px;
    height: 55px;
    background-color: #fff;
    p{
        flex: 7;
        padding-right: 10px;
        font-size: 14px;
        img {
            width: 30px;
            float: left;
        }
    }
    a {
        position: relative;
        flex: 1;
        padding-left: 10px;
        padding-top: 26px;        
        border-left: 1px solid #ccc;
        &::before {
            position: absolute;
            left: 10px;
            top: 0;
            font-size: 24px;
        }
    }

} 


.detail-price {
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    padding:10px;
    .money {
        color: @mainColor;
        font-size: 16px;
    }
    .down {
        padding: 1px 5px;
        border: 1px solid #ccc;
        border-radius: 3px;
    }
}

.detail-select {
    background-color: #fff;
    padding: 10px;
    h5 {
        padding-left: 10px;
    }
    .color {
        div {
            span {
                float: left;
                padding: 5px 7px;
                background-color: #e1e1e1;
                margin: 5px;
                border-radius: 3px;
                font-size: 14px;
            }
        }
    }
    .num {
        display: flex;
        justify-content: space-between;
        padding: 10px;
        height: 30px;
        line-height: 30px;
        box-sizing: content-box;
        .add {
            span {
                float: left;
                width: 30px;
                height: 30px;
                background-color: #e1e1e1;
                text-align: center;
                line-height: 30px;
                font-size: 20px;
                cursor: pointer;
            }
            span:nth-child(2) {
                font-size: 14px;
            }
        }
    }
}


.detail-address {
    font-size: 14px;
    padding: 10px;
    margin-top: 20px;
    background-color: #fff;
    .path {
        display: flex;
        justify-content: space-between;
        margin-bottom: 5px;
        span{
            flex: 1;
        }
        .img {                  
            flex: 1;   
            img {
                width: 20px;
                float: right;
            }      
        }
        .text {
            flex: 5;
            p:nth-child(1) {
                color:#333;
            }
            .now {
                color:@mainColor;
            }
        }
    }
    .weight {
        span{
            color: #000;
        }
    }

}

.detail-comment {
    margin-top: 10px;
    background-color: #fff;
    padding-bottom: 10px;
   .com-title {
        padding: 10px;
        display: flex;
        justify-content: space-between;
        font-size: 16px;
        margin-bottom: 10px;
        .left {
            span {
                color:@mainColor;
                font-size: 14px;
            }
        }
        .right {
            font-size: 14px;
        }
    }
    .item {
        padding: 10px 0;
        padding: 10px;
        border-bottom:1px solid #ccc;
        .user {
            margin-bottom: 5px;
            .start {
                display: inline-block;
                background: url('../images/start.png') no-repeat;
                background-size: 100%;
                width: 60px;
                height: 13px;
            }
        }
        .text {
            margin-bottom: 10px;
        }
        .list {
            img {
                width: 70px;
                float: left;
                margin: 5px;
                }
        }
   }
   .com-all {
       width: 100px;
       height: 25px;      
       border-radius: 13px;
       margin: 10px auto;
       border: 1px solid #ccc;
       text-align: center;
       line-height: 23px;
       
   }
   
}

.detail-introduce{
    background-color: #fff;
    margin-top: 20px;
    .title {
        display: flex;
        height: 40px;
        text-align: center;
        line-height: 40px;        
        span {
            flex: 1;
            border-bottom:1px solid #ccc;
            border-right:1px solid #ccc;
        }
    }
}

.detail-footer {
    border-top: 1px solid #ccc;
    display: flex;
    text-align: center;
    line-height: 55px;
    .icon {
        flex: 4;
        display: flex;
        span {
            box-sizing: border-box;
            flex: 1;
            padding-top: 30px;
            line-height: 20px;
            background: url('../images/server.png') no-repeat center 10px;
            background-size: 20px;
            color:#333;
            font-size: 12px;
        }
        .shop {
            background-image: url('../images/shop.png');
        }
        .cart {
            background-image: url('../images/car.png');
        }
    }
    .cart {
        flex: 3;
        color: #fff;
        font-size: 14px;
        background-color: #ff9600;
    }
    .buy {
        flex: 3;
        color:#fff;
        font-size: 14px;
        background-color:@mainColor;
    }
}
